# -*- coding: utf-8 -*-
"""
积分系统 - URL配置
"""

from django.urls import path
from . import views

app_name = 'points'

urlpatterns = [
    # 页面视图
    path('shop/', views.shop, name='shop'),
    path('records/', views.records, name='records'),
    path('exchanges/', views.exchanges, name='exchanges'),
    path('checkin/', views.checkin, name='checkin'),
    
    # API接口
    path('api/products/', views.api_products_list, name='api_products'),
    path('api/products/<int:product_id>/exchange/', views.api_exchange_product, name='api_exchange'),
    path('api/records/', views.api_point_records, name='api_records'),
    path('api/exchanges/', views.api_exchange_records, name='api_exchanges'),
    
    # 签到API
    path('api/checkin/', views.api_checkin, name='api_checkin'),
    path('api/checkin/status/', views.api_checkin_status, name='api_checkin_status'),
    path('api/checkin/calendar/', views.api_checkin_calendar, name='api_checkin_calendar'),
]
